package com.fanco.learn_datastruct_leetcode.designpattern.visitor.demo1;

/**
 * @author qiaowang 2022/2/21
 * 描述
 */
public class Client {
    public static void main(String[] args) {
        // 创建ObjectStructure
        ObjectStructure objectStructure = new ObjectStructure();

        objectStructure.attach(new Man());
        objectStructure.attach(new Man());
        objectStructure.attach(new Man());

        Success success = new Success();
        objectStructure.display(success);
    }
}
